package com.xiaomi.back.service.billdetailed.impl;

import com.xiaomi.back.dao.billdetailed.BilldetailedDao;
import com.xiaomi.pojo.Bill;
import com.xiaomi.pojo.Billdetailed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("bill")
public class BilldetaildeServiceImpl implements BilldetailedDao {
    @Autowired
    private BilldetailedDao billdetailedDao;

    @Override
    public List<Billdetailed> getBilldetailedlist() {
        return billdetailedDao.getBilldetailedlist();
    }

    //查看订单信息
    @Override
    public List<Bill> GetBIll() {
        return billdetailedDao.GetBIll();
    }

    @Override
    public List<Bill> getOrder(int id,String name) {
        return billdetailedDao.getOrder(id,name);
    }

    //查看今日销售额
    @Override
    public Double DailySales(String TodayTime) {
        return billdetailedDao.DailySales(TodayTime);
    }

    @Override
    public List<Bill> getDayOrder(String day) {
        return billdetailedDao.getDayOrder(day);
    }

}